package com.zpark.controller;

import com.zpark.entity.patients.MedicalReports;
import com.zpark.service.MedicalReportsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;

@RestController
@RequestMapping("/api/medical-reports")
public class MedicalReportsController {

    @Autowired
    private MedicalReportsService medicalReportsService;

    @GetMapping("/all")
    public List<MedicalReports> getAllMedicalReports() {
        return medicalReportsService.getAllMedicalReports();
    }
}